package com.lx;

import org.example.App;

import java.util.Objects;

public class demo {
    private App app;

    public void setApp(App app) {
        this.app = app;
    }

    public App getApp() {
        return app;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        demo demo = (demo) o;
        return Objects.equals(app, demo.app);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(app);
    }

    public demo(App app) {
        this.app = app;
    }

    public demo() {
    }

    @Override
    public String toString() {
        return "demo{" +
                "app=" + app +
                '}';
    }

    public static void main(String[] args) {
        App app = new App();

    }
}
